﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Checkers.Common
{
    /// <summary>
    /// This class represents a pown in a game
    /// </summary>
    public class GamePawn
    {
        // Data Members
        private eGamePawnType m_PawnType;
        private bool m_IsKing;

        // Properties
        public GamePawn(eGamePawnType i_pawnType)
        {
            m_PawnType = i_pawnType;
            m_IsKing = false;
        }

        /// <summary>
        /// Gets and sets the type of the pawn
        /// </summary>
        public eGamePawnType Type
        {
            get 
            { 
                return m_PawnType; 
            }

            set
            {
                m_PawnType = value;
            }
        }

        /// <summary>
        /// Gets and sets whether the pawn is a king pawn
        /// </summary>
        public bool IsKing
        {
            get 
            { 
                return m_IsKing;
            }

            set
            {
                m_IsKing = value;
            }
        }
    }
}
